import request from '/@/utils/request';

/**
 * 登录api接口集合
 * @method signIn 用户登录
 * @method signOut 用户退出登录
 */
export function useAgreementApi() {
	return {
		userAgreementInfo ()  {
			return request({
				url: '/api/agreement/v1/useragreement/info',
				method: 'post',
			});
		},
		aboutUsInfo ()  {
			return request({
				url: '/api/agreement/v1/aboutme/info',
				method: 'post',
			});
		},
		userAgreementSave (params)  {
			return request({
				url: '/api/agreement/v1/useragreement/save',
				method: 'post',
				data: params,
			});
		},
		aboutUsSave (params)  {
			return request({
				url: '/api/agreement/v1/aboutme/save',
				method: 'post',
				data: params,
			});
		},
	};
}
